Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods / ODFrame


SetViewType

The SetViewType method assigns the specified view type to this frame.

void SetViewType (in ODTypeToken viewType);
viewType
A tokenized string representing the view type to assign to this frame.
DISCUSSION
The viewType parameter must be the tokenized form of one of the view-type constants (kODViewAsFrame, kODViewAsSmallIcon, kODViewAsLargeIcon, or kODViewAsThumbnail). You can call the session object's Tokenize method to obtain a token corresponding to one of these constants.

Your part calls its display frame's SetViewType method.

EXCEPTIONS
kODErrIllegalNullTokenInput
The viewType parameter is null.
SEE ALSO
The ODTypeToken type (page 877).
The ODFrame::ChangeViewType method (page 313).
The ODFrame::GetViewType method (page 324).
The ODSession::Tokenize method (page 622).
Listing 2-9 on page 54 in OpenDoc Cookbook.
"View Type" on page 155 in OpenDoc Programmer's Guide.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help